import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 引入字体图标样式
import '@/styles/fonts/font.less'

import '@/styles/index.less'
// dialog拖拽全屏缩放
import Drag from '@/utils/exportExcel/drag.js'

import axios from 'axios'
import XLSX from 'xlsx'

axios.defaults.baseURL = 'http://111.160.78.62:5564/CompanyAPI/'


//东丽区坐标
// 远航环卫作业公司智慧环卫平台
const userName='dlhw'
const MapName='天津市东丽区'
const DefaultPointX=117.318845
const DefaultPointY=39.094733
// axios.defaults.baseURL = 'http://localhost:63067/CompanyAPI/'//博德尔-正式
// axios.defaults.baseURL = 'http://111.160.78.62:5565/CompanyapiBDEapi/'//博德尔-测试


  

//整体引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//引用vuex
import Vuex from 'vuex'

import vdr from 'vue-draggable-resizable-gorkys'

// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

import '@/styles/draggableResize.less'



Vue.use(ElementUI)
Vue.use(Vuex)
Vue.component('vdr', vdr)
Vue.prototype.$url = 'http://111.160.78.62:9930/Cityscapeapi/DataListCompany/'
Vue.prototype.$axios = axios

Vue.prototype.XLSX = XLSX

Vue.prototype.$Http = axios 

Vue.config.productionTip = false

// 根据路由设置标题
router.beforeEach((to, from, next) => {
  /*路由发生改变修改页面的title */
  if(to.meta.title) {
    document.title = to.meta.title
  }
  next()
})


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

export default {
  MapName,
  DefaultPointX,
  DefaultPointY,
  userName
}
